package com.wicket.okrpbff.web.contorller;

import cn.hutool.core.bean.BeanUtil;
import com.wicket.okrpbff.biz.service.OrgDictionaryService;
import com.wicket.okrpbff.biz.service.dto.req.*;
import com.wicket.okrpbff.biz.service.dto.res.*;
import com.wicket.okrpbff.common.ro.OkrResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import java.util.*;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.wicket.okrframework.integration.FwBaseOrgDictionaryClient;
import com.wicket.okrframework.integration.dto.QueryTaskCategoriesListComRespDto;
import com.wicket.okrframework.integration.dto.QueryTaskCategoriesListComReqDto;
import com.wicket.okrpbff.biz.service.dto.common.BffTaskCategoriesDto;
import com.wicket.okrpbff.common.dto.TreeNode;
import java.util.stream.Collectors;
import com.wicket.okrpbff.common.exception.Assert;
import com.wicket.okrpbff.common.util.CommonFunctionHelper;

/**
 * @author ：
 * @date ：
 *
 *
 * @version 1.0
 */
@Api(value = "OrgDictionary", tags = { "OrgDictionary" })
@RestController
// @RequestMapping("/poms/orgDictionary/")
public class OrgDictionaryController {

  @Autowired
  OrgDictionaryService orgDictionaryService;
/**
   * B1查询任务分类列表(边界)
   * gen by moon at 10/3/2024, 2:26:37 PM
   */
    @PostMapping("/oms/orgDictionary/queryTaskCategoriesListBorder")
    @ApiOperation(value = "B1查询任务分类列表(边界)", response = OkrResult.class)
    public OkrResult<BffQueryTaskCategoriesListBorderRespDto> queryTaskCategoriesListBorder(@RequestBody(required=false) @Validated BffQueryTaskCategoriesListBorderReqDto reqDTO){
        return OkrResult.success(orgDictionaryService.queryTaskCategoriesListBorder(reqDTO));
    }
}
